import request from "@/services/request.ts";
export const ProductCategoryList = async (oid:string)=>{
    return request.get('/product/category',{oid})
}

export const ProductCategoryCreate = async (data:CategoryForm)=>{
    return request.post('/product/category',data)
}

export const ProductCategoryUpdate = async (id:number,data:CategoryForm)=>{
    return request.put(`/product/category/${id}`,data)
}

export const ProductCategoryDelete = async (id:number)=>{
    return request.del(`/product/category/${id}`)
}